import App from './App';
// import TIM from 'tim-wx-sdk';
// import TIMUploadPlugin from 'tim-upload-plugin';

// const SDKAppID = 1600016041;
// 创建 SDK 实例，`TIM.create()`方法对于同一个 `SDKAppID` 只会返回同一份实例

// uni.$TUIKit = TIM.create({
// 	SDKAppID: SDKAppID
// });
// uni.$TUIKitTIM = TIM;
// uni.$TUIKitEvent = TIM.EVENT;
// uni.$TUIKitVersion = TIM.VERSION;
// uni.$TUIKitTypes = TIM.TYPES; // 监听系统级事件



import store from './store/index.js'
Vue.prototype.$store = store
// main.js

// 全局mixins，用于实现setData等功能，请勿删除！';
import Mixin from './polyfill/mixins';
import './uni.promisify.adaptor'
import Polyfill from './polyfill/polyfill';
Polyfill.init();

// #ifndef VUE3
import Vue from 'vue';
Vue.mixin(Mixin);
Vue.config.productionTip = false;
App.mpType = 'app';

import bindWx from '@/components/bind-wx/bind-wx.vue';
Vue.component('bindWx', bindWx)


const app = new Vue({
	...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue';

export function createApp() {
	const app = createSSRApp(App);
	app.mixin(Mixin);
	return {
		app
	};
}
// #endif